<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-nested" prefix="nested" %>
<%@ page import="net.lwf.handler.util.ImageHtml,net.lwf.handler.constant.IHandlerConstant"%>

<%@ include file="/worksheet/maths/fractions/arithmaticfractionsJs.jsp" %>

<html:form action="/arithmaticfractions">
	<div onKeyPress="processEnter(event, '/arithmaticfractions.do?action=generate')">  
		<table border="0" align="center" width="80%">
             <tr>
             	<td>
             		<table>
			           <tr>
			             	 <td>
			             	 	<fieldset>
			             	 		<legend class="legend" align="right">Choose  an<span> operation </span></legend>
				             	 	<table>
				             	 		<tr>
				             	 			<nested:iterate property="operations" indexId="counter">
				             	 				<nested:define id="answer" property="answer"/>
				             	 				<nested:define id="display" property="display"/>
				             	 				<td class="info_display">
				             	 					<input type="radio" name="operationType" value="<%=answer%>" />  <%=display%> &nbsp;&nbsp;
				             	 					
				             	 				</td>
				             	 			</nested:iterate>
				             	 		</tr>
				             	 	</table>
									<SCRIPT>
										setFocus('operationType', '0');
									</SCRIPT>					             	 	
			             	 	</fieldset>
			             	 </td> 
			             	 <td>&nbsp;</td>
			             	 <td>
			             	 	<fieldset>
			             	 		<legend class="legend" align="right">Choose  <span> complexity </span></legend>
				             	 	<table>
				             	 		<tr>
				             	 			<nested:iterate property="challenges">
				             	 				<nested:define id="answer" property="answer"/>
				             	 				<nested:define id="display" property="display"/>
				             	 				<td class="info_display">
				             	 					<input type="radio" name="complexity" value="<%=answer%>" />  <%=display%> &nbsp;&nbsp;
				             	 				</td>
				             	 			</nested:iterate>
				             	 		</tr>
				             	 	</table>
			             	 	</fieldset>
			             	 </td>	
			             	 <td>&nbsp;</td>
			             	 <td><img src="<%=request.getContextPath()%>/page/images/go.png" border="0" onClick="checkGo()"></td>		             	 
			            </tr>             		
             		</table>
             	</td>
             </tr>	                
		</table>  
	</div>
</html:form>
